package com.training.java.core.interfaceexamples;

public class interfaceDemo1 {

	public static void main(String[] args) {

		Animal animal1 = new Dog();
		Animal animal2 = new Cat();
		Animal animal3 = new Elephant();

		animal1.sleep();
		animal1.walking();
		animal1.typeOfFood();

		System.out.println("++++++++++++++++++++++++++++");

		animal2.sleep();
		animal2.walking();
		animal2.typeOfFood();

		System.out.println("++++++++++++++++++++++++++++");

		animal3.sleep();
		animal3.walking();
		animal3.typeOfFood();

	}

}
